<%--
  Created by IntelliJ IDEA.
  User: 王殿鑫
  Date: 2021/5/6
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"  isELIgnored="false"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品详细页</title>
</head>
<style type="text/css">
    *{
        margin: 0 auto;
    }
</style>
<body>
<div style="width: 1200px">

    <h1 style="font-size: 46px;margin-left: 500px;font-family: 楷体">商品详细页</h1>
    <h1 style="font-size: 38px;margin-left: 300px;color: coral;font-family: 楷体">${clientUser.username}</h1>

<c:if test="${!empty goods}">
    <div  style="position: relative; width: 500px; height: 500px;border:1px solid #C8C8C8">

        <img src="img${goods.detail}" style="width: 300px; height: 300px;margin-left: 90px;"/><br />
        <div id="" style="margin-left: 120px; font-size: 25px;">
            <form action="GoodAddCar" method="post">
                商品名:	<input  type="text" readonly="readonly"  value="${goods.goodsname}"/><br />
                价格：		<input  type="text" readonly="readonly" name="price" value="${goods.price}"/><br />
                类别：		<input  type="text" readonly="readonly"  value="${goods.model}"/><br />
                <input type="text"  hidden="hidden" name="goodsid" value="${goods.goodsid}">
                <input  type="text"  hidden="hidden" name="userid" value="${clientUser.userid}"/>
                <input type="submit" value="加入购物车"/>
            </form>
        </div>

    </div>
</c:if>
</div>
</body>
</html>
